import request from '@/utils/request'

// 查询会员收货地址列表
export function listMember_receive_address(params) {
  return request({
    url: 'auiu-ums/ums/member_receive_address/list',
    method: 'get',
    params
  })
}

// 查询会员收货地址详细
export function getMember_receive_address(id) {
  return request({
    url: 'auiu-ums/ums/member_receive_address/' + id,
    method: 'get'
  })
}

// 新增会员收货地址
export function addMember_receive_address(data) {
  return request({
    url: 'auiu-ums/ums/member_receive_address/add',
    method: 'post',
    data
  })
}

// 修改会员收货地址
export function updateMember_receive_address(data) {
  return request({
    url: 'auiu-ums/ums/member_receive_address/update',
    method: 'put',
    data
  })
}

// 删除会员收货地址
export function delMember_receive_address(data) {
  return request({
    url: 'auiu-ums/ums/member_receive_address/delete',
    method: 'delete',
    data
  })
}

// 导出会员收货地址
export function exportMember_receive_address(query) {
  return request({
    url: 'auiu-ums/ums/member_receive_address/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
